package mobile.game.demo.log4j;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

public class Log4jDemo {
	static Logger logger;
	
	static {
		System.setProperty("logFileName", "Log4jDemo");
		
		logger = LogManager.getLogger("Log4jDemo");
	}
	
	@SuppressWarnings("deprecation")
	public static void main(String[] args) {
		
		logger.entry();
		
		logger.trace("trace");
		
		logger.debug("debug");
		
		logger.info("info");
		
		logger.warn("warn");
		
		logger.error("error");
		
		logger.fatal("fatal");
		
		logger.exit();
	}

}
